package com.example.safelib.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.safelib.R
import com.example.safelib.bean.SafeLineCharList
import com.example.safelib.bean.SafeLineInfoBean

/**
 * @author sxygsj.
 * @creat time 2020/4/27 14:52.
 * @description [折线 里的传感器list]
 * @chang time 2020/4/27 14:52.
 * @chang describe []
 */
class AddSenAdapter(layoutResId: Int,senlist:List<SafeLineInfoBean>) : BaseQuickAdapter<SafeLineInfoBean, BaseViewHolder>(layoutResId,senlist) {

    override fun convert(helper: BaseViewHolder, item: SafeLineInfoBean) {
        helper.setText(
            R.id.line_item_type,
            item.sensorname
        ).setText(
            R.id.line_item_code,
            item.sensornum
        )
    }


}
